<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="200px">
        <el-menu
          active-text-color="#ffd04b"
          background-color="#545c64"
          class="el-menu-vertical-demo"
          default-active="2"
          text-color="#fff"
          router
        >
          <el-menu-item index="/Home">
            <el-icon> <icon-menu /> </el-icon>
            <span>应用管理</span>
          </el-menu-item>
          <el-menu-item index="/Home/">
            <el-icon> <icon-menu /> </el-icon>
            <span>首页</span>
          </el-menu-item>
          <el-sub-menu>
            <template #title>
              <el-icon><location /></el-icon>
              <span>轮播图管理</span>
            </template>
            <el-menu-item index="/Home/barnnerin">轮播图列表</el-menu-item>
            <el-menu-item index="/Home/barnnerpush">轮播图添加</el-menu-item>
          </el-sub-menu>
          <el-sub-menu index="2">
            <template #title>
              <el-icon><location /></el-icon>
              <span>商品</span>
            </template>

            <el-menu-item index="/Home/Product">商品列表</el-menu-item>
            <el-menu-item index="/Home/pagination">商品分页</el-menu-item>
          </el-sub-menu>
          <el-sub-menu index="3">
            <template #title>
              <el-icon><location /></el-icon>
              <span>操作人员管理</span>
            </template>

            <el-menu-item index="/Home/addition">操作人员列表</el-menu-item>
            <el-menu-item index="/Home/Personnel">添加人员123表</el-menu-item>
            <el-menu-item index="/Home/EditOper">修改人员123表</el-menu-item>
            <!-- <el-menu-item index="/Home/pagination">商品分页</el-menu-item> -->
          </el-sub-menu>
          <!-- <el-menu-item index="4">
            <el-icon><setting /></el-icon>
            <span>Navigator Four</span>
          </el-menu-item> -->
          <el-menu-item index="/MapDemo">
            <el-icon> <icon-menu /> </el-icon>
            <span>地图</span>
          </el-menu-item>
        </el-menu></el-aside>
      <el-container>
        <el-header>头部</el-header>
        <el-main> <router-view></router-view> </el-main>
        <el-footer>底部</el-footer>
      </el-container>
    </el-container>
  </div>
</template>
  

<script setup lang="ts">
import {
  Document,
  Menu as IconMenu,
  Location,
  Setting,
} from "@element-plus/icons-vue";
</script>

<style scoped lang="scss">
// 主板页面
.common-layout {
  width: 100%;
  height: 100%;
}
.el-container {
  height: 100%;
}
.el-header {
  background-color: #87ceeb;
}
// 侧边连
.el-aside {
  background-color: #545c64;
}
// 内容
.el-main {
  height: 100%;
}
</style>zxz